<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <button id="btn">保存1</button>
    <script>
      const btn = document.getElementById("btn");
      const eventArr = [
        {
          name: "click",
          fn: function () {
            console.log(1);
          },
        },
        {
          name: "click",
          fn: function () {
            console.log(2);
          },
        },
        {
          name: "click",
          fn: function () {
            console.log(3);
          },
        },
      ];
      btn.addEventListener("click", function () {
        console.log(1);
      });

      btn.addEventListener("click", function () {
        console.log(2);
      });

      btn.addEventListener("click", function () {
        console.log(3);
      });
    </script>
  </body>
</html>
